package com.ylr.basic.common.vo;

import com.ylr.base.common.enums.AesEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-06-30 10:01:02
 * className: AesVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class AesVo {

    /**
     * 数据
     */
    @NotBlank(message = "数据不能为空")
    private String value;

    /**
     * 类型（{@link AesEnum }）
     */
    @NotNull(message = "类型不能为空")
    private Integer type;

    /**
     * 脱敏开始下标
     */
    private Integer start;

    /**
     * 脱敏结束下标
     */
    private Integer end;

}
